#include "stdafx.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])  
{  
 
    CSerialPort mySerialPort;  
 
    if (!mySerialPort.InitPort(2))  
    {  
        std::cout << "initPort fail !" << std::endl;  
		return 1;
    }  
    else 
    {  
        std::cout << "initPort success !" << std::endl;  
    }  
 
    if (!mySerialPort.OpenListenThread())  
    {  
        std::cout << "OpenListenThread fail !" << std::endl;  
    }  
    else 
    {  
        std::cout << "OpenListenThread success !" << std::endl;  
    }  
 
    int temp;  
    std::cin >> temp;  
 
    return 0;  
}  
